"""
URL configuration for organization app.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path, re_path
from organization import views

app_name = "organization"
urlpatterns = [
    # 企业的注册
    re_path(r'^organization/register/$', views.RegisterView.as_view(), name='register'),
    re_path(r'^organization/register/check_number/$', views.check_number, name='register_check_number'),

    # 企业的登录
    re_path(r'^organization/login/$', views.LoginView.as_view(), name='login'),
    re_path(r'^organization/home/$', views.home, name='home'),

    # 验证码
    re_path(r'^organization/generate_code/$', views.generate_code, name='generate_code'),
    re_path(r'^organization/verify_code/$', views.verify_code, name='verify_code'),

    # 发布就业岗位
    re_path(r'^organization/post_jobs/$', views.CreateJobView.as_view(), name='post_jobs'),

    # 展示就业岗位
    re_path(r'^organization/show_jobs/$', views.ShowJobView.as_view(), name='show_jobs'),

    # 就业岗位详情
    re_path(r'^organization/show_jobs/job_detail/$', views.JobDetailView.as_view(), name='job_detail'),

    # 删除就业岗位
    # re_path(r'^organization/show_jobs/delete_job/$', views.delete_job, name='delete_job'),

    # 管理面试
    re_path(r'^organization/manage_interview/list$', views.ManageInterviewView.as_view(), name='manage_interview'),
    re_path(r'^organization/manage_interview/detail$', views.InterviewDetailView.as_view(), name='interview_detail'),

    # 发布实习
    re_path(r'^organization/show_internship/$', views.ShowInternshipView.as_view(), name='show_internship'),
    re_path(r'^organization/internship_detail/$', views.PostInternshipView.as_view(), name='internship_detail'),

]

